package com.coursedesign.service;

import com.coursedesign.bean.BannerBean;
import com.coursedesign.bean.SolarTermBean;
import com.coursedesign.mapper.HomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomServiceImpl implements  HomeService{
    @Autowired
    HomMapper mapper;
    @Override
    public List<SolarTermBean> getSolarTermList() {
        List<SolarTermBean> solarTermList = mapper.getSolarTermList();
        return solarTermList;
    }

    @Override
    public List<BannerBean> getBannerList() {
        return mapper.getBannerList();
    }
}
